package cn.xiaopengstack.trigger.api.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author jiangyangang
 */
@Data
public class RaffleStrategyRuleWeightResponseDTO implements Serializable {

    /**
     * 用户抽奖进度
     */
    private Integer userTotalAwardsProgress;

    /**
     * 当前所处的奖品权重
     */
    private StrategyWeight currentAward;
    /**
     * 奖品权重列表
     */
    private List<StrategyWeight> awardsWeights;

    @Data
    public static class StrategyWeight implements Serializable{
        /**
         * 奖品ID
         */
        private Integer awardWight;
        /**
         * 奖品列表
         */
        private List<StrategyAward> awards;

    }

    @Data
    public static class StrategyAward implements Serializable{
        /**
         * 奖品标题
         */
        private String awardTitle;
        /**
         * 奖品权重
         * 或者说积分梯度
         */
        private Integer awardId;
    }
}
